<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../common/init.jsp"%>
<script type="text/javascript" src="${ctx}/static/00100/javascripts/gopay/payChannel.js"></script>

<input type="hidden" id="defalutPayChannel" name="defalutPayChannel" value="${ch }"/>
<input type="hidden" id="defalutPayUserType" name="defalutPayUserType" value="${payWayBean.defalutPayUserType}"/>

<ul class="tabsUl fix" id="channelSelLi">
    <c:forEach items="${payWayBean.getPayChannelList() }" var="pcdt">
    
    	<c:if test="${onlyExp eq 'true' }">
    	    <%-- 如果只需要展示快捷支付， 则隐藏掉其他标签 只保留快捷标签 --%>
    	     <c:if test="${pcdt.payChannelLabelId eq 'expressChannelSel'}">
    	         <li class="tabsLabel <c:if test='${ch eq pcdt.payChannelType }'>cur</c:if> 
			        <shiro:authenticated>tabsLabel-l</shiro:authenticated>"
			         id="${pcdt.payChannelLabelId}" 
			          index="${pcdt.payChannelIndex}">${pcdt.payChannelName}</li>
    	     </c:if>
    	</c:if>
    	
    	<c:if test="${onlyExp ne 'true' }">
            <li class="tabsLabel <c:if test='${ch eq pcdt.payChannelType }'>cur</c:if> 
		        <shiro:authenticated>tabsLabel-l</shiro:authenticated>"
		         id="${pcdt.payChannelLabelId}" 
		          index="${pcdt.payChannelIndex}">${pcdt.payChannelName}</li>
        </c:if>
    </c:forEach>
</ul>

<div class="borderBox-3 tabsContain <shiro:authenticated>border-color-4b7</shiro:authenticated>">
    <c:choose>
        <c:when test="${(payWayBean.hasPayChannel()==false)}">
            <shiro:notAuthenticated>
                没有支付权限或者没有支持的清算渠道
            </shiro:notAuthenticated>
        </c:when>
        <c:otherwise>
        
        	<c:if test="${onlyExp ne 'true' }">
        	   <!-- 网银支付 -->
	            <c:if test="${payWayBean.isSupport('01') == true }">
	                <jsp:include page="bank/bankPayChannel.jsp"></jsp:include>
	            </c:if>
	            <!-- 国付宝在线支付 -->
	            <c:if test="${payWayBean.isSupport('06') == true }">
	                <c:if test="${(order.intTxnCd eq '00100' or order.intTxnCd eq '01813')}">
	                    <shiro:notAuthenticated>
	                        <jsp:include page="acct/gopayLogin.jsp"></jsp:include>
	                    </shiro:notAuthenticated>
	                </c:if>
	            </c:if>
        	</c:if>
        
            
            <!-- 快捷支付 -->
            <c:if test="${payWayBean.isSupport('02') == true}">
                <jsp:include page="express/expressPayChannel.jsp"></jsp:include>
            </c:if>

			<!-- 扫码支付 -->
			<c:if test="${payWayBean.isSupport('16') == true}">
				<jsp:include page="scan/scanPayChannel.jsp"></jsp:include>

			</c:if>
        </c:otherwise>
    </c:choose>
</div>

<script type="text/javascript">
   $(function(){
	   var idInfoNotEq = '${idInfoNotEq}';
	   if (idInfoNotEq && idInfoNotEq == 'true') {
		   alert('上送信息与登录信息不符，已退出登录');
	   }
	   
   });
</script>
